<include file="Public:head" title="拼团列表"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Pintuan/lists')}">拼团管理</a></li>
                    <li class="active">拼团列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <div class="nav-search col-xs-10" id="nav-search">
                                        <form class="form-search" method="get">
                                            <div class="search_area">
                                                <select name="modal_cat_id" autocomplete="off">
                                                    <option value="0">请选择拼团分类</option>
                                                    <foreach name="modal_cats" item="row">
                                                        <option value="{$row.id}"<if condition="$row.id eq $modal_cat_id">selected</if>>
                                                        {$row.name}                                                
                                                        </option>
                                                    </foreach>
                                                </select>
                                                <input class="form-control search-query" type="text" name="keyword" autocomplete="off"  placeholder="请输入拼团名称" value="{$Think.get.keyword}">
                                                <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class='cl'></div>
                                </div>
                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                   
                                                    <th width='45px' class="center">ID</th>
                                                    <th>拼团名称</th>
                                                    <th>拼团分类</th>
                                                    <th width="120px">拼团来源</th>
            <th width="75px">拼团金额</th>
                                                            <th  width="320px">拼团用户</th>
                                                               <th width="75px">浏览次数</th>
                                                             <th width="75px">下载次数</th>
                                                               <th width="75px">拼团次数</th>
                                                                     <th width="75px">已拼金额</th>
                                                    <th width="75px">是否开启</th>
                                                    <th width="113px"><i class="icon-time bigger-110 hidden-480"></i>添加时间</th>
                                                    <th width="115px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
                                                    <td class="center">{$row.id}</td>
                                                    <td><a href="http://www.sucaihuo.com/Pintuan/{$row['id']}.html" target="_blank">{$row.name|msubstr=0,32,'utf-8',true}</a></td>
 <td>{$row.cat_id|getSingleField=###=###,'Pintuan_dictionary','name'}</td>
                                       
                                                    <td><a href="{$row.Pintuan}" target="_blank">{$row.Pintuan}</a><strong class="red">{$row.points}</strong></td>
                                                         <td>{$row.points_pintuan}</td>
                                                       <td>
                                                  <foreach name="row['downloads']" item="row2">
                                                    <a href="{:U('User/detail',array('id'=>$row2['uid']))}" style='margin-right:8px' target="_blank">{$row2.uid|getUserName} ({$row2.addtime|date="Y-m-d H:i",###}：{$row2.points})</a><br>
                                                </foreach>
                                            </td>
                                             <td><a onclick="changeOrd($(this), 'pintuan', '{$row.id}','times_view')">{$row.times_view}</a></td>
                                               <td><a onclick="changeOrd($(this), 'pintuan', '{$row.id}','times_download')">{$row.times_download}</a></td>
                                                  <td><a onclick="changeOrd($(this), 'pintuan', '{$row.id}','times_pintuan')">{$row.times_pintuan}</a></td>
                                                       <td><a onclick="changeOrd($(this), 'pintuan', '{$row.id}','points_pinhas')">{$row.points_pinhas}</a></td>
                                                    <td id="is_check_{$row.id}"><a onclick="yes('{$row.id}', 'pintuan', 'is_check')"><if condition="$row.is_check eq 1">是<else/><span style="color:red">否</span></if></a></td>
                                                   <td>{$row.addtime|date="Y-m-d H:i",###}</td>
                                                    <td class="action-buttons">
                                                  <a class="purple" data-rel="tooltip" data-original-title="演示地址" href="{$row.demo_url}" target="_blank"><i class="icon-facetime-video bigger-130"></i></a>
                                                       <a class="green" href="{:U('Pintuan/detail',array('id'=>$row['id']))}" data-rel="tooltip" data-original-title="编辑"><i class="icon-pencil bigger-130"></i></a>
                                   <a class="green" href="{:U('Box/downloads',array('tid'=>$row['id'],'mtype'=>50))}" target="_blank"><i class="icon-globe bigger-130"></i></a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='modals'  id='modal_del_table'>
                                            <tr>
                                                <td>
                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                        <a class="purple" href="{:U('Pintuan/detail')}" data-rel="tooltip" data-original-title="添加拼团">
                                                            <i class="icon-plus-sign bigger-130"></i>
                                                        </a>
                                                        
                                                    </div>
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录！</p>
                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:del" />
<include file="Public:state" />
<include file="Public:foot" />